package com.wdd.atcrowdfunding.manager.service;

import com.wdd.atcrowdfunding.bean.Permission;
import com.wdd.atcrowdfunding.bean.Role;
import com.wdd.atcrowdfunding.bean.User;
import com.wdd.atcrowdfunding.util.Page;
import com.wdd.atcrowdfunding.vo.Data;

import java.util.List;
import java.util.Map;

public interface UserService {
    User queryUserLogin(Map<String, Object> paramMap);

    Page queryUserPage(Map<String,Object> paramMap);

    int saveUser(User user);

    User getUserById(Integer id);

    int updateUser(User user);

    int deleteUser(Integer id);

    int deleteBatchUserByVO(Data data);

    List<Role> queryAllRole();

    List<Integer> queryRoleByUserid(Integer id);

    List<Permission> queryPermissionByUserid(Integer id);

    boolean querySelectUserByLoginacct(String loginacct);

    boolean querySelectUserByUsername(String username);

    boolean querySelectUserByEmail(String email);
}
